package com.hpxx.ylzswl.linster;

import android.widget.CompoundButton;

import com.hpxx.ylzswl.callback.CbCallBack;


/**
 * 迈虹信息科技.All rights reserved
 * @author LuoXiang
 * @ClassName ${ClassName}
 * @TitleName ${ClassName}
 * @Data 2017/7/4
 */
public class CbLinster implements CompoundButton.OnCheckedChangeListener {

    private int position;
    private CbCallBack callback;
    public CbLinster(CbCallBack callback , int position){
        this.position = position;
        this.callback = callback;
    }


    @Override
    public void onCheckedChanged(CompoundButton compoundButton, boolean istrue) {
        callback.cbLinster(istrue,position);
    }
}
